<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AlertStatusToFeishuCallingCardsStories extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('feishu_calling_cards_stories', function (Blueprint $table) {
            $table->unsignedTinyInteger('status')->default(0)->comment('状态 默认0-显示 1-隐藏（公众号被删除）');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('feishu_calling_cards_stories', function (Blueprint $table) {
            Schema::dropIfExists('status');
        });
    }
}
